package org.wdcode.shop.helper;

import org.wdcode.base.helper.BaseEntityCacheHelper;
import org.wdcode.shop.cache.LeaveWordCache;
import org.wdcode.shop.po.LeaveWord;

/**
 * 留言相关业务助手类 可操作缓存
 * @author WD
 * @since JDK6
 * @version 1.0 2009-11-23
 */
public final class LeaveWordHelper extends BaseEntityCacheHelper<LeaveWordCache, LeaveWord> {
	// 留言助手
	private static LeaveWordHelper	helper;

	/**
	 * 实例化一个对象
	 */
	public LeaveWord newInstance() {
		return new LeaveWord();
	}

	/**
	 * 获得子类的Class
	 * @return 子类的Class
	 */
	public Class<LeaveWord> getEntityClass() {
		return LeaveWord.class;
	}

	/**
	 * 获得留言助手
	 * @return 留言助手
	 */
	public static LeaveWordHelper getHelper() {
		return helper;
	}

	/**
	 * 设置留言助手
	 * @param helper 留言助手
	 */
	public void setHelper(LeaveWordHelper helper) {
		LeaveWordHelper.helper = helper;
	}
}